package com.pzb.page.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 弹出图层对象 pg_page_item_eject
 * 
 * @author Mr_Wu
 * @date 2021-12-20
 */
public class PgPageItemEject implements Serializable
{
    private static final long serialVersionUID = 1L;

    private boolean display = true;

    private String previewPath;

    /** 显示时长 */
    private Integer displayTime;

    /** 显示方式：0为进入页面显示一次，1为每次打开页面者显示 */
    private Integer displayMode;

    /** 链接类型：1首页；2商品；3商品分类；4优惠券；5自定义页面；6搜索页 */
    private Integer linkType;

    /** 链接地址 */
    private String linkAddress;

    public boolean isDisplay() {
        return display;
    }

    public void setDisplay(boolean display) {
        this.display = display;
    }

    public String getPreviewPath() {
        return previewPath;
    }

    public void setPreviewPath(String previewPath) {
        this.previewPath = previewPath;
    }

    public void setDisplayTime(Integer displayTime)
    {
        this.displayTime = displayTime;
    }

    public Integer getDisplayTime() 
    {
        return displayTime;
    }
    public void setDisplayMode(Integer displayMode) 
    {
        this.displayMode = displayMode;
    }

    public Integer getDisplayMode() 
    {
        return displayMode;
    }
    public void setLinkType(Integer linkType) 
    {
        this.linkType = linkType;
    }

    public Integer getLinkType() 
    {
        return linkType;
    }
    public void setLinkAddress(String linkAddress) 
    {
        this.linkAddress = linkAddress;
    }

    public String getLinkAddress() 
    {
        return linkAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("displayTime", getDisplayTime())
            .append("displayMode", getDisplayMode())
            .append("linkType", getLinkType())
            .append("linkAddress", getLinkAddress())
            .toString();
    }
}
